module.exports = {
  devServer: {
    port: 3000,
    // 添加CORS配置
    headers: {
      'Access-Control-Allow-Origin': '*',
      'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
      'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization'
    },
    // 可选：配置代理到微前端应用
    proxy: {
      '/new': {
        target: 'http://localhost:5001',
        changeOrigin: true
      }
    }
  }
}